package com.my.chapter4;

import java.util.Random;

public class practice3 {
    public static void main(String[] args) {
        Random random=new Random();
        int j = random.nextInt(100);
        int k = random.nextInt(100);
        while(true){
            String result;
            if(j<k){
                result="小于";
            }else if(j>k){
                result="大于";
            }else{
                result="等于";
            }
            System.out.println("随机数"+j+result+"随机数"+k);
            j=k;
            k = random.nextInt(100);
        }
    }
}
